<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <meta http-equiv="X-UA-Compatible" content="ie=edge">
    <title>乐淘-用户-me</title>
    <link rel="stylesheet" href="./lib/bootstrap/css/bootstrap.min.css">
    <link rel="stylesheet" href="./lib/nprogress/nprogress.css">
    <!-- 公共的css文件 -->
    <link rel="stylesheet" href="./css/common.css">
    <link rel="stylesheet" href="./css/index.css">
</head>

<body>
    <!-- 乐淘侧边栏部分 -->
    <div class="lt-aside">
        <!-- 标题 -->
        <h3 class="title">
            <a href="#">黑马34期</a>
        </h3>
        <!-- 头像 -->
        <div class="user">
            <img src="./images/default.png" alt="">
            <p>超级管理员</p>
        </div>
        <!-- 导航 -->
        <ul class="nav clearfix">
            <li class="current">
                <a href="user.html">
                    <span class="glyphicon glyphicon-user"></span>
                    用户管理
                </a>
            </li>
            <li>
                <a href="#">
                    <span class="glyphicon glyphicon-th-list"></span>
                    分类管理
                </a>
                <ul class="clearfix child" style="display: none">
                    <li><a href="first.html">一级分类</a></li>
                    <li><a href="second.html">二级分类</a></li>
                </ul>
            </li>
            <li>
                <a href="product.html">
                    <span class="glyphicon glyphicon-tags"></span>
                    商品管理
                </a>
            </li>
        </ul>
    </div>
    <!-- 乐淘主体部分 -->
    <div class="lt-main">
        <!-- 顶部条 -->
        <div class="topbar">
            <a href="#" class="glyphicon glyphicon-align-justify menu pull-left"></a>
            <a href="#" class="glyphicon glyphicon-log-out login-out pull-right"></a>
        </div>
        <!-- 下面部分 -->
        <div class="container-fluid">

            <!-- 路径部分 -->
            <ol class="breadcrumb lt-url">
                <li><a href="#">管理系统</a></li>
                <li class="active">用户管理</li>
            </ol>
            <!-- 数据部分 -->
            <table class="table table-bordered table-hover">
                <thead>
                    <tr>
                        <th>序号</th>
                        <th>用户名</th>
                        <th>手机号</th>
                        <th>状态</th>
                        <th>操作</th>
                    </tr>
                </thead>
                <tbody>
                    <!-- <tr>
                        <td>1</td>
                        <td>itcast</td>
                        <td>199999999999</td>
                        <td>正常</td>
                        <td><button type="button" class="btn btn-success">启用</button></td>
                    </tr> -->

                </tbody>
            </table>
            <!-- 分页配置部分 -->
            <div class="pull-right">
                <ul id="pagintor"></ul>
            </div>

            <!-- 模态框 -->
            <div class="modal fade bs-example-modal-sm" tabindex="-1" role="dialog" aria-labelledby="mySmallModalLabel">
                <div class="modal-dialog modal-sm">
                    <div class="modal-content">
                        <div class="modal-header">
                            <button type="button" class="close" data-dismiss="modal" ><span
                                    aria-hidden="true">&times;</span></button>
                            <h4 class="modal-title">温馨提示</h4>
                        </div>
                        <div class="modal-body">
                            <p style="color: #A94442"><span class="glyphicon glyphicon-info-sign"></span>你确定执行此操作吗?</p>
                        </div>
                        <div class="modal-footer">
                            <button type="button" class="btn btn-default" data-dismiss="modal">取消</button>
                            <button type="button" class="btn btn-primary" id="btn-toggle">确定</button>
                        </div>
                    </div><!-- /.modal-content -->
                </div><!-- /.modal-dialog -->
            </div><!-- /.modal -->


        </div>
    </div>

    <!-- 渲染用户信息模板 -->
    <script type="text/html" id="tmp-user">
       {{each rows v i}} 
             <tr data-id="{{v.id}}">
                <td>{{i+1+(page-1)*size}}</td>
                <td>{{v.username}}</td>
                <td>{{v.mobile}}</td>
                <td>{{v.isDelete == 0? '禁用' : '正常'}}</td>
                <td>
                    {{if v.isDelete}}
                        <button type="button" class="btn btn-danger">禁用</button>
                    {{else}}
                        <button type="button" class="btn btn-success">启用</button>
                    {{/if}}
                </td>
            </tr>
       {{/each}}
    </script>

    <script src="./lib/jquery/jquery.min.js"></script>
    <script src="./lib/bootstrap/js/bootstrap.min.js"></script>
    <!-- 分页器 -->
    <script src="lib/bootstrap-paginator/bootstrap-paginator.min.js"></script>
    <!-- 进度条 -->
    <script src="./lib/nprogress/nprogress.js"></script>
    <script src="./lib/artTemplate/template-web.js"></script>
    <script src="./js/common.js"></script>
    <!-- 判断用户有没有登录过的js文件 -->
    <script src="./js/islogin.js"></script>
    <!-- 公共的js文件 -->
    <script src="./js/user.js"></script>

</body>

</html>